import java.util.*;

public class HJ66 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        Map<String,String> map = new HashMap<>();
        map.put("reset","reset what");
        map.put("reset board","board fault");
        map.put("board add","where to add");
        map.put("board delete","no board at all");
        map.put("reboot backplane","impossible");
        map.put("backplane abort","install first");
        Set<String[]> order = new HashSet<>();
        for (String s : map.keySet()) {
            String[] s1 = s.split(" ");
            order.add(s1);
        }
        while (sc.hasNextLine()){
            String input = sc.nextLine();
            String[] inputChange = input.split(" ");
            String[] compareString = null;
            int count = 0;
            for (String[] compareOrder : order) {
                if (inputChange.length == 1){
                    if (compareOrder.length == 2)
                        continue;
                    else {
                        if (compareOrder[0].startsWith(inputChange[0])){
                            compareString = compareOrder;
                            count ++ ;
                        }
                    }
                }else if (inputChange.length == 2) {
                    if (compareOrder.length ==1)
                        continue;
                    else {
                        if (compareOrder[0].startsWith(inputChange[0])){
                            if (compareOrder[1].startsWith(inputChange[1])){
                                compareString = compareOrder;
                                count ++ ;
                            }
                        }
                    }
                }
            }
            if (count != 1){
                System.out.println("unknown command");
            }else if (compareString.length ==1 ){
                System.out.println(map.get(compareString[0]));
            }else {
                System.out.println(map.get(compareString[0] + " " + compareString[1]));
            }

        }
    }
}
